package com.scwatch.core.repository;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.ProgramDatecheack;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Created by rh006 on 2017/7/26.
 */
public interface ProgramDatecheckDao extends Repository<ProgramDatecheack, Integer> {


    public Page<ProgramDatecheack> findAll(Specification<ProgramDatecheack> spec,
                                     Pageable pageable);

    public List<ProgramDatecheack> findAll(Specification<ProgramDatecheack> spec,
                                     Limitable limitable);

    public ProgramDatecheack findOne(Integer id);

    public ProgramDatecheack save(ProgramDatecheack bean);

    public void delete(ProgramDatecheack bean);

//    @Query("from ProgramDatecheack pd where pd.pid = ?1")
//    public Page<ProgramDatecheack> findAllByPid(Integer id, Specification<ProgramDatecheack> spec, Pageable pageable);

}
